package hellfire.platform.graphics;


import hellfire.game.weapons.Ball;
import hellfire.game.weapons.Bomb;
import hellfire.system.R;
import hellfire.system.graphics.GLImage;
import hellfire.system.graphics.GLRelVec2;

public class BombRenderer extends AbstractRenderer
{
private static GLImage bombSprite = null;
	
	public void draw(float[] matrix, Object obj)
	{
		Bomb b = (Bomb) obj;
		if(bombSprite == null)
		{
			bombSprite = new GLImage(R.drawable.bomb, new GLRelVec2(0,0), Bomb.getDim());
		}
		
		bombSprite.setPos(b.getRenderPos());
		bombSprite.draw(matrix);
		
	}
}
